package org.qing.config;

import org.qing.freepx.service.IpWebProxyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ThreadConfig {
	
	@Autowired
	private IpWebProxyService ipWebProxyService;
	
	@Bean
	public IPProxyThread initIpProxyThread() {
		IPProxyThread thread =  new IPProxyThread(ipWebProxyService);
		thread.start();
		return thread;
	}

}
